package io.finer.erp.jeecg.bas.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 业务员回款统计表
 * @Author: jeecg-boot
 * @Date:   2020-09-18
 * @Version: V1.0
 */
@Data
@TableName("zrk_order_salary")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zrk_order_salary对象", description="业务员回款统计表")
public class ZrkOrderSalary implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**业务员*/
	@Excel(name = "业务员", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "业务员")
    private java.lang.String userId;
	/**销售订单*/
	@Excel(name = "销售订单", width = 15, dictTable = "zrk_shoporder", dicText = "shop_order", dicCode = "id")
	@Dict(dictTable = "zrk_shoporder", dicText = "shop_order", dicCode = "id")
    @ApiModelProperty(value = "销售订单")
    private java.lang.String orderId;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15)
    @ApiModelProperty(value = "订单金额")
    private java.math.BigDecimal salesMoney;
	/**延期发放金额*/
	@Excel(name = "延期发放金额", width = 15)
    @ApiModelProperty(value = "延期发放金额")
    private java.math.BigDecimal thirtyMoney;
	/**当月发放金额*/
	@Excel(name = "当月发放金额", width = 15)
    @ApiModelProperty(value = "当月发放金额")
    private java.math.BigDecimal senventyMoney;
	/**现金回款金额*/
	@Excel(name = "现金回款金额", width = 15)
    @ApiModelProperty(value = "现金回款金额")
    private java.math.BigDecimal cashBackMoney;
	/**账期回款金额*/
	@Excel(name = "账期回款金额", width = 15)
    @ApiModelProperty(value = "账期回款金额")
    private java.math.BigDecimal periodBackMoney;
	/**是否全部回款*/
	@Excel(name = "是否全部回款", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否全部回款")
    private java.lang.Integer isAll;
	/**有效开始日期*/
	@Excel(name = "有效开始日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "有效开始日期")
    private java.util.Date startTime;
	/**有效结束日期*/
	@Excel(name = "有效结束日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "有效结束日期")
    private java.util.Date endTime;
	/**订单日期*/
	@Excel(name = "订单日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单日期")
    private java.util.Date orderTime;
	/**回款类型*/
	@Excel(name = "回款类型", width = 15, dicCode = "back_type")
	@Dict(dicCode = "back_type")
    @ApiModelProperty(value = "回款类型")
    private java.lang.Integer moneyType;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private java.lang.Integer salaryStatus;
	/**最高有效期*/
	@Excel(name = "最高有效期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最高有效期")
    private java.util.Date overtime;
	/**是否全款*/
	@Excel(name = "是否全款", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否全款")
    private java.lang.Integer isAllMoney;
	/**回全款时间*/
	@Excel(name = "回全款时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "回全款时间")
    private java.util.Date backTime;
	/**客户编号*/
	@Excel(name = "客户编号", width = 15, dictTable = "bas_customer", dicText = "name", dicCode = "id")
	@Dict(dictTable = "bas_customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户编号")
    private java.lang.String cusId;
	
	/**新老客户 1:新客户 0:老客户*/
	@Excel(name = "新老客户", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "新老客户")
    private java.lang.Integer isNewOrOld;
}
